
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
namespace RaceGame2013
{
    public class HealthPowerUp
    {
        public int health;
        // Content 
        ContentManager content;
        // Spritebatch
        SpriteBatch spriteBatch;
        // Position of the health object
        public Vector2 position;

        // Plaatje inladen
        private Texture2D healthTexture;

        // ColisionBox
        public Rectangle healthPowerUpColisionBox;



        // Constructor
        public HealthPowerUp(ContentManager content, SpriteBatch spriteBatch, Vector2 position, int health)
        { 
            // De health aan de object meegeven
            this.health = health;
            // Content 
            this.spriteBatch = spriteBatch;
            this.content = content;
            this.position = position;

            // Set collision box
            healthPowerUpColisionBox = new Rectangle((int)this.position.X, (int)this.position.Y, 50, 50);

            // Load a health texture 
            healthTexture = content.Load<Texture2D>("HealthPowerup");
        }

        public void Draw()
        {
            spriteBatch.Draw(healthTexture, position, null, Color.White, 0f, new Vector2(healthTexture.Width / 2, healthTexture.Height / 2), 0.045f, SpriteEffects.None, 0f);
        }


    }

}

